#include <stdio.h>
#include <string.h>
#include <stdbool.h>

bool checkRecord(char* s)
{
    int count = 0;
    for(int i = 0;i < strlen(s);i++)
    {
        if(s[i] == 'A')
            count++;
        if(i >= 2 && s[i] == 'L' && s[i - 1] == 'L' && s[i - 2] == 'L')
            return false;
        if(count >= 2)
            return false;
    }
    return true;
}

int main()
{
    char s[] = "PPLPAPLLL";
    if(checkRecord(s))
        printf("okkkk\n");
    else
        printf("noooo\n");
    return 0;
}